import socket

# 判断是否是本地环境
def personalPc():
    hostname = socket.gethostname()
    if hostname.find('DESKTOP') >= 0:
        localtets = 1
    else:
        localtets = 2
    return localtets